package com.huatai.paas.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "服务器登录信息实体类", description = "服务器登录信息实体类")
@TableName("sys_server_info")
public class ServerInfo implements Serializable {
	@ApiModelProperty("服务器信息id")
	private Long id;
	@ApiModelProperty(value = "连接名称")
	private String serverName;
	@NotBlank(message = "连接ip不能为空")
	@ApiModelProperty(value = "连接ip",required = true)
	private String serverIp;
	@ApiModelProperty(value = "连接端口(非必填，默认22)")
	private Integer serverPort;
	@NotBlank(message = "登录用户不能为空")
	@ApiModelProperty(value = "登录用户",required = true)
	private String serverUser;
	@NotBlank(message = "登录密码不能为空")
	@ApiModelProperty(value = "登录密码",required = true)
	private String serverPassword;
	@ApiModelProperty(value = "备注")
	private String remake;
	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;

}
